FROM node:8.10.0-slim
MAINTAINER Javashop

RUN mkdir -p /app
COPY . /app
WORKDIR /app

COPY ./package*.json ./
RUN npm install

ENV NODE_ENV=production

COPY . .
RUN npm run build

ENV HOST 0.0.0.0
EXPOSE 3000

CMD ["npm", "start"]
